package cool.mtc.minghe.service.mapper.sys.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cool.mtc.minghe.data.entity.sys.user.UserOrgRoleDO;
import cool.mtc.minghe.data.model.sys.user.dto.UserOrgDTO;
import cool.mtc.minghe.data.model.sys.user.dto.UserOrgRoleDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 明河
 */
public interface UserOrgRoleMapper extends BaseMapper<UserOrgRoleDO> {

    List<UserOrgDTO> listOrgByUserId(@Param("userId") long userId);

    List<String> listPermissionByUserIdAndOrgId(@Param("userId") long userId, @Param("orgId") long orgId);

    List<UserOrgRoleDTO> listOrgRoleByUserId(@Param("userId") long userId);
}
